package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName("title")
public class Title {
    @TableId(type = IdType.AUTO)
    private int titleId;
    private String  titleName;
    private Date stopTime;
    @TableField(exist = false)
    private int count;
    public Title() {
    }

    public Title(int titleId, String titleName, Date stopTime) {
        this.titleId = titleId;
        this.titleName = titleName;
        this.stopTime = stopTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "Title{" +
                "titleId=" + titleId +
                ", titleName='" + titleName + '\'' +
                ", stopTime=" + stopTime +
                ", count=" + count +
                '}';
    }

    public int getTitleId() {
        return titleId;
    }

    public void setTitleId(int titleId) {
        this.titleId = titleId;
    }

    public String getTitleName() {
        return titleName;
    }

    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }
}
